public class Main {
    public static void main(String[] args) {


        Employee employee=new Employee() {

            @Override
            public void work() {
                System.out.println("工号为"+id+"员工"+name+"在努力的敲代码");
            }

        };
        employee.setId("1");
        employee.setName("jt");
        employee.work();
    }
}